﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameObjects
{
    public class DrawablePlayer : GameObjects.Player, ISprite
    {
        public Sprite Sprite { get; set; }

        public DrawablePlayer(IMovable moveBehavior)
            : base(moveBehavior)
        { }

        public void Update(Microsoft.Xna.Framework.GameTime gameTime)
        {
            Sprite.Update(gameTime);
        }

        public void Draw(Microsoft.Xna.Framework.GameTime gameTime, Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch)
        {
            Sprite.Draw(gameTime, spriteBatch, this);
        }
    }
}
